package com.mind.xagame.message.model
import java.util.List;
/**denglu
*自动生成类
*/
public class Login extends BaseMessage{
	/**类型*/
	private Byte type;
	/**用户id*/
	private String id;
	/**用户名称*/
	private String name;
	/**好友ids*/
	private String[] friends;
	public Login(){}
	public Login(Byte type,String id,String name,String[] friends){
	  this.type=type;
	  this.id=id;
	  this.name=name;
	  this.friends=friends;
	}
	/**获取类型*/
	public Byte getType(){
		return this.type;
	}
	/**获取用户id*/
	public String getId(){
		return this.id;
	}
	/**获取用户名称*/
	public String getName(){
		return this.name;
	}
	/**获取好友ids*/
	public String[] getFriends(){
		return this.friends;
	}
	@Override
	protected boolean readImpl() {
		this.type=readByte();
		this.id=readString();
		this.name=readString();
		this.friends=readStrings();
		return true;
	}
	@Override
	protected boolean writeImpl() {
		writeByte(this.type);
		writeString(this.id);
		writeString(this.name);
		writeStrings(this.friends);
		return true;
	}
	public short getType() {
		return 11;
	}
}
